package org.dromara.business.service;

import org.dromara.business.domain.LotteryRecords;
import org.dromara.business.domain.vo.LotteryRecordsVo;
import org.dromara.business.domain.bo.LotteryRecordsBo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 抽奖记录Service接口
 *
 * @author Lion Li
 * @date 2025-01-13
 */
public interface LotteryRecordsService extends IService<LotteryRecords> {

    /**
     * 查询抽奖记录
     */
    LotteryRecordsVo queryById(Long id);

    /**
     * 查询抽奖记录列表
     */
    TableDataInfo<LotteryRecordsVo> queryPageList(LotteryRecordsBo bo, PageQuery pageQuery);

    /**
     * 查询抽奖记录列表
     */
    List<LotteryRecordsVo> queryList(LotteryRecordsBo bo);

    /**
     * 新增抽奖记录
     */
    Boolean insertByBo(LotteryRecordsBo bo);

    /**
     * 修改抽奖记录
     */
    Boolean updateByBo(LotteryRecordsBo bo);

    /**
     * 校验并批量删除抽奖记录信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);


}
